package com.qicheng.wlhyspider.common;

public class Results {
    public static Result success() {
        return new Result(Boolean.TRUE, 0, "成功");
    }

    public static Result error() {
        return error(500, "失败");
    }

    public static Result error(String message) {
        return error(500, message);
    }

    public static Result error(Integer code, String message) {
        return new Result(Boolean.FALSE, code, message);
    }
}
